package com.ece.core.editors.config;


/**
 * provides an adapter implementation to dealing with .rdi files.
 * 
 * The methods in this class are likely to be simultaneously called by more than
 * one method
 * 
 * @author Senthu Sivasambu, http://ca.linkedin.com/in/sivasambu
 * 
 */
public class RDIConfigAdapter {

    private static Class linkedFile;

    private RDIConfigAdapter(Class linkedFile)
    /* no public instantiation */
    {
	this.linkedFile = linkedFile;
    }

    public RDIConfigAdapter createConfigAdapterForClass(Class classInstance) {
	if (classInstance == null) {
	    throw new IllegalArgumentException(
		    "@param classInstance cannot be null");
	}
	return new RDIConfigAdapter(classInstance);
    }

    /**
     * All the review data is supposed to be appended to the already existing
     * ones and should not be deleted.
     * 
     * down the way we may have to come up with some way to archive these
     */
    public void addNewReview(Comment comment) {
	if (comment == null) {
	    throw new IllegalArgumentException("@param comment cannot be null");
	}
    }

}
